#include<iostream>
#include<string>

using namespace std;

struct student
{
    string name;
    int age;
    int score;
};

void print1(student s)
{
    cout << "zhi chuan di" << endl;
    s.age = 100;
    cout<<"姓名："<<s.name<<" 年龄："<<s.age<<" 分数："<<s.score<<endl;
}

void print2(student *s)
{
    cout << "di zhi chuan di" << endl;
    s->age = 200;
    cout<<"姓名："<<s->name<<" 年龄："<<s->age<<" 分数："<<s->score<<endl;
}

int main()
{
    struct student s1={"张三",18,100};
    print1(s1);
    print2(&s1);
    cout  << "mian han shu:" << endl;
    cout << "姓名：" << s1.name << " 年龄：" << s1.age << " 分数：" << s1.score << endl;
    return 0;
    
}